#define _CRT_SECURE_NO_WARNINGS 1
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define endl '\n'

void solve() {
	int n; cin >> n;
	for (int i = 1; i <= 26; i++) {
		for (int j = 1; j <= 26; j++) {
			for (int k = 1; k <= 26; k++) {
				if (i + j + k == n) {
					cout << char(i + 'a' - 1) << char(j + 'a' - 1) << char(k + 'a' - 1) << endl;
					return;
				}
			}
		}
	}
}

int main() {
	ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
	int t; cin >> t;
	while (t--) {
		solve();
	}
	return 0;
}